// main.js (修正后)
import { createApp } from 'vue';
import ElementPlus from 'element-plus';  // 导入ElementPlus
import 'element-plus/dist/index.css';  // 导入ElementPlus样式
import App from './App.vue';
import router from './router';
import { createPinia } from 'pinia'

const app = createApp(App);
app.use(ElementPlus);  // 注册ElementPlus插件
app.use(router);
app.use(createPinia())
app.mount('#app');